package com.lucher.tangstore.service.impl;

import com.lucher.tangstore.dao.OperatorMapper;
import com.lucher.tangstore.po.Operator;
import com.lucher.tangstore.service.IOperatorService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("operatorService")
public class OperatorServiceImpl implements IOperatorService {
	 // 定义DAO
    @Resource
    private OperatorMapper operatorMapper;

    @Override
    public int deleteByPrimaryKey(Integer operatorId) {
        return operatorMapper.deleteByPrimaryKey(operatorId);
    }

    @Override
    public int insert(Operator record) {
        return operatorMapper.insert(record);
    }

    @Override
    public int insertSelective(Operator record) {
        return operatorMapper.insertSelective(record);
    }

    @Override
    public Operator selectByPrimaryKey(Integer operatorId) {
        return operatorMapper.selectByPrimaryKey(operatorId);
    }

    @Override
    public int updateByPrimaryKeySelective(Operator record) {
        return operatorMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Operator record) {
        return operatorMapper.updateByPrimaryKey(record);
    }
    
    @Override
    public List<Operator> findOperatorList(Operator record) {
        return operatorMapper.findOperatorList(record);
    }
    
    @Override
    public int findByCount(Operator record) {
        return operatorMapper.findByCount(record);
    }
    
    @Override
    public List<Operator> findOperatorListForPage(Operator record) {
        return operatorMapper.findOperatorListForPage(record);
    }

    @Override
    public Operator findOperatorByLoginname(Operator record) {
        return operatorMapper.findOperatorByLoginname(record);
    }
}
